package com.dony.order.service;

import com.dony.order.domain.Order;
import com.dony.shop.domain.vo.PushVo;
import com.github.yulichang.base.MPJBaseService;

import java.util.List;

/**
 * 订单Service接口
 *
 * @author dony
 * @date 2022-09-07
 */
public interface IOrderService extends MPJBaseService<Order> {

    /**
     * 通过商户ID同步订单
     *
     * @param merchantId
     * @return
     */
    Boolean syncOrderByMerchant(Long merchantId);

    /**
     * 通过店铺ID同步订单
     *
     * @param shopId
     * @return
     */
    Boolean syncOrderByShop(Long shopId);


    /**
     * 同步订单
     *
     * @return
     */
    Boolean syncOrder();

    Float getIncomeByOrderSn(Long shopId, String orderSn);

    Boolean handleShopeePush(PushVo pushVo);

}
